package com.zqw.util;

import org.springframework.util.DigestUtils;

public class MD5Util {

    //对字符串进行md5加密
    public static String getMd5(String str){
        return DigestUtils.md5DigestAsHex(str.getBytes());
    }

}
